package com.zhiche.lisa.bms.service.price;

import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.price.PricePurchaseDtl;

import java.util.List;

/**
 * <p>
 * 支付价格明细 服务类
 * </p>
 *
 * @author hongbo
 * @since 2018-10-31
 */
public interface PricePurchaseDtlService extends IService<PricePurchaseDtl> {
    /**
     * 根据绑定头id和列信息进行新增
     *
     * @param pricePurchaseDtls
     * @param headerId
     * @return
     */
    List<PricePurchaseDtl> insertPricePurchaseDtls(List<PricePurchaseDtl> pricePurchaseDtls, Long headerId);

    /**
     * 根据绑定头id和列信息进行新增
     *
     * @param pricePurchaseDtl
     * @param headerId
     * @return
     */
    PricePurchaseDtl insertPricePurchaseDtl(PricePurchaseDtl pricePurchaseDtl, Long headerId);

    /**
     * 根据头单id获取支付价格明细
     *
     * @param headerId
     * @return
     */
    List<PricePurchaseDtl> selectPricePurchaseDtlByHeadId(Long headerId);

    /**
     * 根据指令号获取数量, 判断是否存在
     *
     * @param orderCode
     * @return
     */
    int getCountByOrderCode(String orderCode);

}
